import * as tslib_1 from "tslib";
import { Entity, NgField, EntityList, NgList, NgEntity } from '@farris/devkit';
import { YlfxEntity } from './ylfxentity';
var JmsmdEntity = /** @class */ (function (_super) {
    tslib_1.__extends(JmsmdEntity, _super);
    function JmsmdEntity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ID',
            dataField: 'id',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "id", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ParentID',
            dataField: 'parentID',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ParentID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "parentID", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'mdbh',
            dataField: 'mdbh',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'mdbh',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "mdbh", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'mdmc',
            dataField: 'mdmc',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'mdmc',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "mdmc", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'mdsf',
            dataField: 'mdsf',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'mdsf',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "mdsf", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'mdszqy',
            dataField: 'mdszqy',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'mdszqy',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "mdszqy", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'mdxxdz',
            dataField: 'mdxxdz',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'mdxxdz',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "mdxxdz", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'mddz',
            dataField: 'mddz',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'mddz',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "mddz", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'mdlxdh',
            dataField: 'mdlxdh',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'mdlxdh',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "mdlxdh", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'mdyj',
            dataField: 'mdyj',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'mdyj',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "mdyj", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'tyshxydm',
            dataField: 'tyshxydm',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'tyshxydm',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "tyshxydm", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'mdjmf',
            dataField: 'mdjmf',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'mdjmf',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmsmdEntity.prototype, "mdjmf", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'ylfxs',
            originalDataField: '',
            type: YlfxEntity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], JmsmdEntity.prototype, "ylfxs", void 0);
    JmsmdEntity = tslib_1.__decorate([
        NgEntity({
            originalCode: "jmsmd",
            nodeCode: "jmsmds",
            allowEmpty: true
        })
    ], JmsmdEntity);
    return JmsmdEntity;
}(Entity));
export { JmsmdEntity };
